import PanelBase from "../view/PanelBase";
import TipMgr from "../tip/TipMgr";
import AppConst from "../AppConst";


export default class EGPanelGreen extends PanelBase {
    protected onInit(): void {
        this.skinPath = 'mi/example/EGPanelGreen';

        this.panelMaskStyle = AppConst.panelMaskStyle.Close | AppConst.panelMaskStyle.Black; //关闭组件(点击面板区域会关闭面板)加半透明组件
    }

    protected onButtonClick(button: cc.Button): void {
        if (button.node.name == 'BtnTip') {
            TipMgr.inst.addTip('这是绿色面板的Tip');
        }
    }
}
